package com.geekteam.geometrychess.config;

public enum ZoneConfig {
	UNKNOWN(0),
	COHINH(1);

	private final int	id;

	private ZoneConfig(int id){
		this.id = id;
	}
	
	public int getId(){
		return id;
	}
	
	public String getName() {
		if (id == 1)
			return "Cờ hình";
		else
			return "Cờ hình";
	}

	public static ZoneConfig getZoneConfig(int id) {
		if (id == 1)
			return COHINH;
		else
			return UNKNOWN;
	}
	
	public static ZoneConfig getZoneEnum(String zoneName) {
		zoneName = zoneName.toUpperCase();
		if (zoneName.indexOf("CoHinh") != -1)
			return COHINH;
		else
			return UNKNOWN;
	}
	
	public double getMinBetMoney() {
		switch (id)
		{
			case 0:
				return 0;
			case 1:
				return 100000;  // TIỀN CƯỢC MIN MẶC ĐỊNH
		}
		return 0;
	}
	
	public double getMaxBetMoney() {
		switch (id)
		{
			case 0:
				return 0;
			case 1:
				return 10000000; // TIỀN CƯỢC MAX MẶC ĐỊNH
		}
		return 0;
	}
	
	public double getDefaultBetMoney() {
		switch (id)
		{
			case 0:
				return 0;
			case 1:
				return 100000;
		}
		return 0;
	}

	public double getMinMoneyJoinZone()
	{
		switch (id)
		{
			case 0:
				return 0;
			case 1:
				return 0;
		}
		return 0;
	}
}
